import 'package:flutter/material.dart';

void main() {
  //运行应用程序
  runApp(MaterialApp(
    // home: Center(
    //   child: Text('你好'),
    // ),

    home: Scaffold(
      appBar: AppBar(
        title: const Text('你好'),
        backgroundColor: Colors.pink,
      ),
      body: const Center(
        child: MyApp(),
      ),
    ),
  ));
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Text('你好世界'),
    );
  }
}
